home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
COMMADIO
/
XRS3.LZH
/
XCS100.ZIP
/
ARCHIVE.ZIP
/
ARCHIVE.MAN
< prev
next >
Wrap
Text File
|
1991-05-05
|
21KB
|
415 lines
XXX XXX CCCCCCCC SSSSSSSS
XXX XXX CCC CCC SSS SSS
XXXXXX CCC SSS
XXXX CCC SSSSSS
XXXXXX CCC SSS
XXX XXX CCC CCC SSS SSS
XXX XXX CCCCCCCC SSSSSSSS
A R C H I V E
eXpress Conversion System version 1.00
(C) Copyright 1990-1991 by Rudi J.A. Kusters, ProCess
All rights reserved - Alle rechten voorbehouden.
FidoNet Addresses: 2:512/34.4 (2:512/1)
SIGnet Address: 27:3331/2206
eXpress Conversion System 1.00 Page 0-1
┌───────────────────────────────────────────────────────────────┐
│ Using XCS To Convert Archive Files │
└───────────────────────────────────────────────────────────────┘
One of the finest features of the eXpress Response System
(XRS) is the ability to archive messages you have read. Up to
now you have probably seldom looked into the archive file. Have
you ever tried to reply to an archived message? Lot of work,
wasn't it? That's why I started the eXpress Conversion System.
With XCS you can convert the archived messages into a
XRS-compatible mailbag. After conversion you can re-use the
archived messages just like any other mailbag. Using XRS you can
re-Read them, Reply to them, Quote them, Print them, or Tag &
archive them again to get an archive of e.g. messages with the
same subject. This new archive file can once again be converted
by XCS into XRS format.
┌───────────────────────────────────────────────────────────────┐
│ Contents │
└───────────────────────────────────────────────────────────────┘
∙ Configuration Parameters . . . . . . . . . . . . . . . . 0-1
∙ Command Line Syntax . . . . . . . . . . . . . . . . . . . 0-1
∙ Maintaining The Archive File . . . . . . . . . . . . . . 0-6
┌───────────────────────────────────────────────────────────────┐
│ Configuration Parameters │
└───────────────────────────────────────────────────────────────┘
At this time, only the XCS_Limit parameter is read from the
CONFIG.XCS or CONFIG.XRS file.
┌───────────────────────────────────────────────────────────────┐
│ Command Line Syntax │
└───────────────────────────────────────────────────────────────┘
To convert an archive file, type the following command at the
DOS prompt:
[drive:\directory\]XCS /cArchive | /c0 [/a] [/f<flags>]
[/l<limit>] [/n<node>] [/o<order>]
[/s<source>]
eXpress Conversion System 1.00 Page 0-2
If you have the XCS program files on you DOS PATH or in the
current directory, you don't need to specify drive and directory.
If not, specify them as indicated, e.g. 'C:\XRS\XCS'. The file
ARCHIVE.EXE *MUST* be in the very same directory as the XCS.EXE
program. Otherwise, it won't run!
A lot of parameters, but all of them (except /c) are optional
and the order doesn't matter, nor does the case. You must,
however, separate arguments with a space. Here's an explanation
of what they do:
/cArchive Type of conversion
This is how you tell XCS that you want it to
convert a XRS archive alike file to a XRS mailbag.
You may also use '/c0'.
/c0 Specifying '/c0' is the same as specifying
'/cArchive'.
/a Append to an existing mailfile
If you want to append the converted messages to an
existing mailfile, you can specify the /a
parameter. You can use this to convert the
messages of more than one archive file into the
same XRS mailfile, or to append the archive
messages to a regular mailfile you received from
the BBS. The first message to be converted will get
the number of the existing messages plus one. This
could be a lower number than that of the last
existing message, but this will not lead to severe
problems.
Default: The default is *not* to append, but to create new
files. Any existing file with the name
BAT?MAIL.XRS, MAIL?IDX.XRS, or SUMMARY?.XRS will be
overwritten. The question mark '?' in these
filenames is the node/line number specified with
/n<node>.
eXpress Conversion System 1.00 Page 0-3
/fNone Sets none of the flags (same as /f0)
/fRead Mark all messages 'Read' (same as /f1)
With '/fRead' or '/f1' you tell XRS that you
already have read all messages in the mailbag. If
you have read a mailbag (regular BBS mailbag or
mailbag converted by XCS), but want to go thru the
lot again, you can use the 'ReRead' conversion type
(and _not_ '/fNone'!) to remove those marks.
Default: No messages read ('/fNone' or '/f0')
/l<limit> Maximum number of messages to be converted
XCS will convert no more than the number specified
with 'XCS_Limit' in CONFIG.X?S. You can overwrite
this number for this session only with the command
line parameter 'l<limit>'. Any number between 0
and 65535 is valid. Sorting however, is limited to
1200 messages.
Default: Mailbag size is limited to 65535 messages.
/n<node> Node or line number
With this parameter you can specify the node (or
line) number (1-9 or A-Z) to use for the mailfiles.
See your XRS documentation for more information
about these numbers. If you have the file
AREAS3.XRS and USER3.XRS, you can specify '/n3' to
create (or append to) the mailfiles BAT3MAIL.XRS,
MAIL3IDX.XRS AND SUMMARY3.XRS.
Default: By default node number 1 will be used. In this case
you need the files AREAS1.XRS and USER1.XRS. The
created files are BAT1MAIL.XRS, MAIL1IDX.XRS and
SUMMARY1.XRS. If you have specified '/a /n1', but
you have only the mailfiles for node 2, the
converted messages will *not* be appended to these
files. Instead, new mailfiles are created for node
1.
eXpress Conversion System 1.00 Page 0-4
/oNone Don't sort message (same as /o0)
/oDate Sort messages by date and time (same as /o1)
/oName Sort messages by name of writer (same as /o2)
/oSubject Sort messages by subject (same as /o3)
/oArea Sort messages by echomail area (same as /o4)
This way you tell XCS how to sort the messages or
not to sort them at all. If you choose to sort the
messages, XCS will first scan the archive file to
build a table, then sort this table and next
convert the messages in sorted order. When
appending to an existing mailbag, sorting only
applies to the messages that are ADDED to the
mailbag. At this time, sorting is limited to 1200
messages.
Something to experiment with: when you sort the
archive by echomail area ('/oArea' or '/o4') and
'Read Messages Chronologically' in XRS you can
decrease disk movements significantly. Since the
messages are already sorted, XRS doesn't need to
travel thru the mailbag as much as it would have if
the mail was not sorted.
Default: By default the messages are NOT sorted, but stored
in the mailbag in exactly the same order as they
appear in the archive file.
/s<source> Name of the archive file
You can use this parameter to specify the name of
the file that contains the messages to be
converted. This name can include a drive and/or
directory specification. The name of the source
file including drive and directory may not exceed
80 characters.
Default: The default name of the file that contains the
messages to be converted is ARCHIVED.XRS in the
current directory. If XCS can't find this file in
the current directory, it is not going to look for
it elsewhere.
Examples: XCS /c0
XCS converts the file ARCHIVED.XRS (which is in the
current directory), uses the existing files
USER1.XRS and AREAS1.XRS and creates the files
BAT1MAIL.XRS, MAIL1IDX.XRS, SUMMARY1.XRS and
BAG_ID.XRS in the current directory.
eXpress Conversion System 1.00 Page 0-5
XCS /a /cArchive /s\XRS\STORED.XRS /n4 /o3
In this case XCS looks for the file STORED.XRS in
the \XRS directory, uses the files USER4.XRS and
AREAS4.XRS in the current directory and appends the
converted messages to the existing files
BAT4MAIL.XRS, MAIL4IDX.XRS, SUMMARY4.XRS and
BAG_ID.XRS. The messages are sorted by subject.
After starting XCS the screen shows the XCS logo. The bottom
line shows (from left to right) the chosen conversion type
('Archive' in this case), the chosen options (Node, Append,
Flags, Sort) and the name of the source file. The box just below
the middle of the screen informs you on the conversion progress.
The messages are:
┌────────────────────────────────────────────────
│ Creating mailbag for: <your name>
│ Send any replies to node: <your boss's node>
│ Number of messages found: <nnn>
│ Sorting Message Table...
The last two of these you will only see if you have chosen to
sort the messages. At the time the actual conversion is started,
you'll see:
│ Converting source file to Bat1Mail.Xrs...
│ Working on message : <nnn> (<yyy> to you!)
where 'nnn' is the current treated message number and 'yyy' the
number of messages addressed to you.
XCS searches for the first line that starts with
" To: ". If any of the lines in the message body starts
with the same string, it will be treated as the start of a new
message! Use a texteditor to change the misinterpreted line if
this happens. Following the first line, the other three message
header lines must exist. XCS stops converting if one of them is
not found. All following lines are considered to be message text
up to the next line starting with the "To:" string, or the
occurance of the line that starts with "=-=-=-=-=". If the
latter of these is found, lines between this one and the next
"To:" line are skipped. The source file is read as a textfile,
meaning that an EOF is an end of file and if it's found in the
middle of the source file, the rest is ignored. Delete these out
of place EOF's with an editor and restart conversion.
Any existing files with the name BAT<node>MAIL.XRS,
SUMMARY<node>.XRS or MAIL<node>IDX.XRS will be overwritten unless
you have specified the '/a' parameter, in which case the
converted messages are appended to those files.
eXpress Conversion System 1.00 Page 0-6
Now you can start RESPONSE to work on the newly created
archive mailbag.
┌───────────────────────────────────────────────────────────────┐
│ Maintaining The Archive File │
└───────────────────────────────────────────────────────────────┘
To make sure you don't send replies in areas that do not
longer exist, or reply to a message that came from another board
than the Areas?.Xrs file, XCS checks the area (group) tag and
number in the message header lines. If the name is found in
Areas?.Xrs but with another number, the correct areanumber is
substituted in the header line. If the areatag is not found in
Areas?.Xrs, the group info is changed to 'LOCAL (0)', meaning
that the message is moved to the local area.
That's all I can do to prevent messages going in the wrong
echo. You only have to keep a recent copy of Areas?.Xrs in the
directory where you start the conversion!
Things still could grow into a total mess, if you don't do
some regular maintainance work. There are several ways to do
this. Here are some examples.
■ Adding To The Archive File ___________________________________
XCS does not only convert the ARCHIVED.XRS file (or whatever
name you gave the archive file), but digests any other XRS alike
message file as well. For instance, you can eXport the message
you have read and eXport your reply to it. Afterwards you enter
the DOS command:
COPY CONTACT.XRS+HIS.MSG+MYREPLY.MSG CONTACT.XRS/B
^^^^
(or something similar) to append them to an archive file. In the
same way you can combine two separate archive files before you
pass them on to XCS. Note the "/B" at the end of the target file.
This is *not* optional! XCS stops reading at the first occurence
of an "end of file" character (^Z, 26 decimal, 1A hex). Although
XRS doesn't put them in (and never has done), some texteditors
and the DOS copy command might. Use a texteditor to delete all
^Z characters from the archive file _before_ you run XCS. See
your DOS manual for more information on the end of file character
and the DOS COPY command parameter /B.
You can even turn any ASCII file into a XRS readable message.
The only thing you need to do is to start the ASCII file with the
proper message header lines. For this purpose I have enclosed a
file containing these lines.
eXpress Conversion System 1.00 Page 0-7
Use the DOS command:
COPY HEADER.XCS+ASCII.TXT MESSAGE.TXT/B
(substituting your own filenames) to add the headerlines to the
top of your ASCII file or use your texteditor and import this
header file at the very top of your text. Lines longer than 79
characters are wrapped by XCS. You can make your lines as long
as 2045 characters and XCS will format them. 'Soft' carriage
returns are _not_ replaced.
In the header lines you must replace some fields with the
necessary info. Each series of 'aaa' can be replaced by
alphanumeric characters, each series of 'nnn' by numbers only.
Take a close look at the headers of the XRS messages and you'll
know what to do. Don't alter the positions of the fields or
their labels. XCS will instantly stop converting before XRS
looses control while displaying them.
You _must_ provide the information in the 'Date' field, since
XCS can sort the messages by date. Enter the areatag in the
'Group' field - you don't need to enter the areanumber, XCS will
automagically find the right one.
You can not add messages to the converted mailbag
(BAT?MAIL.XRS) manually. You can however add messages to the
archive file and use XCS to reconvert, or make a separate archive
file and let XCS append them to the XRS mail files.
■ Selecting Messages To Make A New Archive _____________________
When the archive mailbag gets too big, you could split them
into multiple archives. Maybe you want all messages related to a
certain subject in a separated file. All this can be done by
XRS. Start the program, TAG the messages that you want in the
new file and enter the name of the new archive file when leaving
XRS. You can also use the XRS AutoTAG parameters to do an
automatic selection.
■ Deleting Messages ____________________________________________
For the moment you have to use some tricks to delete one or
more messages. You could use your texteditor to delete a message
from the archive file (NOT FROM THE MAILBAG). An other way is to
TAG *all* messages, using the (3.11 and up) parameter AutoTag
and/or AutoMatch to mark all messages containing two characters
that are in all messages. Then UNTAG the messages you want to
delete and save the rest to a new archive file when leaving XRS.
---